<template>
	<view class="van-hairline--bottom">
		<view class="evaluate_list hidden">
			<view class="evaluate_top flex3">
				<image :src="info.avatar" mode="aspectFill"></image>
				<view class="w_flex1">
					<view class="font_23 color_7b text_bold">{{info.username}}</view>
					<view class="font_19 color_ac text_bold evaluate_m1">{{info.createtime_text}}</view>
				</view>
			</view>
			<view class="font_31 evaluate_m2">{{info.content}}</view>
			<view class="font_27 bg_f2 reply" v-if="info.rep_content"><text
					class="color_7b">商家回复：</text>{{info.rep_content}}
			</view>
			<view class="flex1 evaluate_m3" v-if="!all">
				<navigator :url="'/pages/index/evaluate?id=' + info.store_id" hover-class="none"
					class="font_27 color_ff6a00">
					查看全部评价</navigator>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			all: {
				type: Boolean
			},
			info: {
				type: Object
			},
		},
		data() {
			return {

			}
		}
	}
</script>

<style lang="less">
	.evaluate_list {
		padding-bottom: 23rpx;
	}

	.evaluate_top {
		margin: 35rpx 0 0 0;

		image {
			width: 62rpx;
			height: 62rpx;
			border-radius: 50%;
			margin-right: 12rpx;
		}
	}

	.evaluate_m1 {
		margin: 4rpx 0 0;
	}

	.evaluate_m2 {
		margin: 23rpx 0 12rpx;
	}

	.evaluate_m3 {
		margin-top: 15rpx;

		navigator {
			padding: 4rpx 0;
		}
	}

	.reply {
		padding: 20rpx;
		margin: 23rpx 0 12rpx 0;
		border-radius: 12rpx;
	}

	/deep/ .van-hairline--bottom:after {
		border-color: #ddd;
	}
</style>
